package com.hmall.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "mall_hot")
public class MallHot {
    /**
     * 热推id
     */
    @Id
    @Column(name = "hot_id")
    private Integer hotId;

    @Column(name = "product_id")
    private Integer productId;

    /**
     * 销量  单位千克
     */
    @Column(name = "sales_volume")
    private BigDecimal salesVolume;

    /**
     * 等级  1-9  默认0
     */
    private Integer rank;

    /**
     * 是否启用该热推  0不启用 1启用 默认为0
     */
    private Integer status;

    @Column(name = "update_time")
    private Date updateTime;



    @Override
    public String toString() {
        return "MallHot{" +
                "hotId=" + hotId +
                ", productId=" + productId +
                ", salesVolume=" + salesVolume +
                ", rank=" + rank +
                ", status=" + status +
                ", updateTime=" + updateTime +
                '}';
    }
}